package framework.mocks
{
    import mx.rpc.AbstractOperation;
    import mx.rpc.AbstractService;
    import mx.rpc.AsyncToken;

    public class MockRemoteObject extends AbstractService
    {
        public function MockRemoteObject()
        {
        }

        public function addMockOperation(name:String, func:Function, delay:Number = 200):void
        {
            var op:AbstractOperation = new MockOperation(func, delay, this, name);
            operations[name] = op;
        }
    }
}